// 用函数的方式创建action对象
import {ADD_MESSAGE,DEL_MESSAGE,GET_MESSAGE,GET_MESSAGE_ASYNC} from './action-types';

export const add_message=data=>({type:ADD_MESSAGE,data});
export const del_message=data=>({type:DEL_MESSAGE,data});
export const get_message=data=>({type:GET_MESSAGE,data})
export const get_message_async=data=>({type:GET_MESSAGE_ASYNC,data})



